/*
 * Quantity.h
 *
 *  Created on: Feb 28, 2011
 *      Author: wjfortin
 */

#ifndef QUANTITY_H_
#define QUANTITY_H_

struct Quantity {


	float value;
	char* name;


	~Quantity() {
		if (name)
			delete name;
	}

	float operator*(int i) {return value*i;}
	float operator*(float f) {return value*f;}

	float operator+(int i) {return value+i;}
	float operator+(float f) {return value+f;}

	float operator-(int i) {return value-i;}
	float operator-(float f) {return value-f;}

	float operator/(int i) {return value/i;}
	float operator/(float f) {return value/f;}
};

#endif /* QUANTITY_H_ */
